package com.qf.java2106.huangshengrui.hotel.dao;

import com.qf.java2106.huangshengrui.hotel.pojos.User;

import java.sql.SQLException;

/**
 * @author q
 * @version V1.0
 * @date 2021/10/28
 **/
public interface IUserDao {

    /**
     * 登陆
     * @param loginUser
     * @return
     */
    Integer userLogin(User loginUser) throws SQLException;

    /**
     * 检查用户名
     * @param username
     * @return
     */
    User userCheck(String username) throws SQLException;

    /**
     * 注册用户
     * @param logonUser
     * @return
     */
    Integer userLogon(User logonUser) throws SQLException;
}
